//package edu.sctu.zcy.month201506.day20150626.jsouptest;
//
//import org.apache.http.HttpEntity;
//import org.apache.http.HttpResponse;
//import org.apache.http.client.HttpClient;
//import org.apache.http.client.methods.HttpGet;
//import org.apache.http.impl.client.CloseableHttpClient;
//import org.apache.http.impl.client.HttpClientBuilder;
//import org.apache.http.util.EntityUtils;
//
//import java.io.IOException;
//
///**
//* Created by user24 on 2015/6/26.
//*/
//public class GetForm {
//
//    HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
//    CloseableHttpClient closeableHttpClient = httpClientBuilder.build();
//
//    public String getMessage(String url) throws IOException {
//
//        String pageMessage;
//        HttpGet httpGet = new HttpGet(url);
//
//        HttpResponse httpResponse = closeableHttpClient.execute(httpGet);
//        HttpEntity httpEntity = httpResponse.getEntity();
//        pageMessage = EntityUtils.toString(httpEntity);
//
//        return pageMessage;
//    }
//}
